﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class DealCardsRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 3;

        public int zhuangLocationIndex { get; set; }
        public List<UserHandCardsRet> cardMsg { get; set; }

        public void decode(Input _in)
        {
            zhuangLocationIndex = _in.readInt();
            cardMsg = new List<UserHandCardsRet>();
            cardMsg = _in.readList<UserHandCardsRet>(_in);
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return " DealCardsRet [zhuangLocationIndex= "+zhuangLocationIndex+ " ]“【cardMsg：“"+cardMsg+"]";
        }
    }
}